package tutorial.main.config;

import java.io.IOException;
import java.util.Properties;
import android.util.Log;

public class AnacronteConfig {

    static private AnacronteConfig singleton = null;
    private Properties prop;
    
    private AnacronteConfig() 
    {
    	prop = new Properties();
    	try {
    			prop.load(getClass().getResourceAsStream("/tutorial/main/config/anacronte.properties"));
    		} 
    	    catch(Exception ioe) 
    		{
    	    	Log.i("Config","No se pudo levantar el archivo de Propiedades");
    		}
    }

    static public AnacronteConfig getInstance() 
    {
        if (singleton == null) 
        {
            singleton = new AnacronteConfig();
        }
        return singleton;
    }
    
    public String getPropiedad(String key)
    {
    	return this.prop.getProperty(key);
    }
	
	
	
}
